<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">

		<title>查看/编辑影片</title>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
		
	<style type="text/css">
		
		.icon-th{
			height: 19px;padding-top: 5px;
		}
	</style>


	</head>

	<body class="content1">
		<div class="header">
			<h1 class="page-title">
				影视管理系统
			</h1>
		</div>

		<ul class="breadcrumb">
			<li>
				<a href="index.html">影视管理</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				查看/编辑影片(${film.filmName})
			</li>
		</ul>

		<div class="container-fluid">
			<div class="row-fluid">
				<form method="post" action="<%=basePath%>film/film/editFilmSuc" enctype="multipart/form-data">
					<div class="btn-toolbar">
						<input type="submit" class="btn btn-primary" value="提交 ">
						<a href="<%=basePath%>film/film/filmlist" class="btn">取消</a>

					</div>

					<div class="well">
						<div class="tab-pane active in">
							<label>
								类型：
							</label>
								<select name="ftId">
									<c:forEach items="${typelist}" var="type">										
										<option value="${type.ftId}" 
											<c:if test="${type.ftId eq film.ftId}">
											selected="selected" 
											</c:if>
											/>
											${type.ftName}
										</option>					
									</c:forEach>
								</select>
							<label>
							 影片名：
							</label>
							<input type="hidden" name="filmId" value="${film.filmId}" />
							<input type="text" name="filmName" maxlength="20"  value="${film.filmName}" >
							<label>
								影片小图片：
							</label>
							<input type="file" name="picture">
							 <label>
								影片封面：
							</label>
							<input type="file" name="cover">
							<label>
								影片所属语言：
							</label>
							<select name="filmLanguage">
								<c:choose>
									<c:when test="${film.filmLanguage == '中文'}">
										<option value="中文" selected="selected">中文</option>
										<option value="英文">英文</option>
										<option value="法语">法语</option>
										<option value="意大利">意大利</option>	
									</c:when>
									<c:when test="${film.filmLanguage == '英文'}">
										<option value="中文">中文</option>
										<option value="英文" selected="selected">英文</option>
										<option value="法语">法语</option>
										<option value="意大利">意大利</option>	
									</c:when>
									<c:when test="${film.filmLanguage == '法语'}">
										<option value="中文">中文</option>
										<option value="英文">英文</option>
										<option value="法语" selected="selected">法语</option>
										<option value="意大利">意大利</option>	
									</c:when>
									<c:otherwise>
										<option value="中文">中文</option>
										<option value="英文">英文</option>
										<option value="法语">法语</option>
										<option value="意大利" selected="selected">意大利</option>	
									</c:otherwise>
								</c:choose>
							</select>
							<label>
								影片出售价格：
							</label>
							<input type="text" name="filmPrice" value="${film.filmPrice}" maxlength="20">
							<label>
								优惠几折：
							</label>
							<input type="text" name="filmDiscount" value="${film.filmDiscount}" maxlength="20">
							<label>
								影片导演：
							</label>
							<input type="text" name="filmDirector" value="${film.filmDirector}" maxlength="20">
							<label>
								影片参演人员：
							</label>
							<input type="text" name="filmAcotr"  value="${film.filmAcotr}"  maxlength="20">
							<label>
								影片编剧：
							</label>
							<input type="text" name="filmWriter" value="${film.filmWriter}" maxlength="20">
							<label>
								影片简介：
							</label>
							<input type="text" name="filmIntroduction" value="${film.filmIntroduction}"  maxlength="20">
							<label>
								影片状态：
							</label>
							<select name="filmState">
								<c:choose>
									<c:when test="${film.filmState==\"1\"}">
										<option value="1" selected="selected">正常</option>
										<option value="0">不可用</option>		
									</c:when>
									<c:otherwise>
										<option value="1">正常</option>
										<option value="0" selected="selected">不可用</option>	
									</c:otherwise>
								</c:choose>
							</select> 
							
							<div style="color: red">
								${msg}
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</body>
</html>
